<?php if (!defined('THINK_PATH')) exit();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7" />
    <title>系统管理中心</title>
    <link href="__CSS_ADMIN_PATH__reset.css" rel="stylesheet" type="text/css" />
    <link href="__CSS_ADMIN_PATH__zh-cn-system.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles1.css" title="styles1" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles2.css" title="styles2" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles3.css" title="styles3" media="screen" />
    <link rel="alternate stylesheet" type="text/css" href="__CSS_ADMIN_PATH__style/zh-cn-styles4.css" title="styles4" media="screen" />

    <link href="__CSS_ADMIN_PATH__dialog.css" rel="stylesheet" type="text/css" />
    <link href="__CSS_ADMIN_PATH__table_form.css" rel="stylesheet" type="text/css">
    <script src="__JS_PATH__jquery-1.8.3.js" type="text/javascript"></script>
    <script src="__JS_PATH__jquery-ui.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src="__JS_PATH__dialog.js"></script>

    <script src="__JS_ADMIN_PATH__wysiwyg.js" type="text/javascript"></script>
    <script src="__JS_ADMIN_PATH__functions.js" type="text/javascript"></script>
    <!--<script src="/public/index/js/lang.js" type="text/javascript"></script>-->

    <script src="__JS_PATH__Validform_v5.3.2.js" type="text/javascript"></script>

    <script type="text/javascript">
        var isIE = (document.all && window.ActiveXObject && !window.opera) ? true : false;
        function Dd(i) {return document.getElementById(i);}
        function Eh(t) {
            var t = t ? t : 'select';
            if(isIE) {
                var arVersion = navigator.appVersion.split("MSIE"); var IEversion = parseFloat(arVersion[1]);
                if(IEversion >= 7 || IEversion < 5) return;
                var ss = document.body.getElementsByTagName(t);
                for(var i=0;i<ss.length;i++) {ss[i].style.visibility = 'hidden';}
            }
        }
        function Es(t) {
            var t = t ? t : 'select';
            if(isIE) {
                var arVersion = navigator.appVersion.split("MSIE"); var IEversion = parseFloat(arVersion[1]);
                if(IEversion >= 7 || IEversion < 5) return;
                var ss = document.body.getElementsByTagName(t);
                for(var i=0;i<ss.length;i++) {ss[i].style.visibility = 'visible';}
            }
        }
    </script>
</head>
<body>


<div class="pad-10">
  <div class="content-menu ib-a blue line-x">修改信息</div>
  <div class="col-auto">
    <div class="col-1">
      <div class="content pad-6">
	
			<form method="post" action="__URL__/updateadmin" onsubmit=""><!-- Form -->
				<!-- Fieldset -->
			<table width="100%" cellspacing="0" class="table_form">
<tbody>	
					<tr>
						<th>真实姓名:</th><td>
 					 	<input class="mediumfield"  name="truename" type="text" value="<?php echo ($adminlist['truename']); ?>" /> 
						<span class="field_desc" id="truenamemsg">请填写真实姓名</span>
						<input type="hidden" name="truenamestau" id="truenamestau"  value="failed"/>
					</td>
</tr>
					<tr>
						<th>邮&nbsp;箱:</th><td>
						<input class="mediumfield" id="email" onblur="checkemail()" name="email" type="text" value="<?php echo ($adminlist['adminemail']); ?>" /> 
						<span class="field_desc" id="emailmsg">请正确填写邮箱</span>
						<input type="hidden" name="emailstau" id="emailstau"  value="failed"/>
					</td>
</tr>
					<tr>
						<th>所属角色:</th><td>
 						<select name="role">
							<option value="<?php echo ($adminlist["roleid"]); ?>"><?php echo ($adminlist["rolename"]); ?></option>
							<?php if(is_array($rolelist)): $i = 0; $__LIST__ = $rolelist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$role): $mod = ($i % 2 );++$i;?><option value="<?php echo ($role["id"]); ?>"><?php echo ($role["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
						</select>
				</td>
</tr>
                    <tr> 
					 <td>
					 </td>
					 <td>
					<input type="hidden" name="id" value="<?php echo ($adminlist['adminid']); ?>">
					<input class="submit" name="dosubmit" type="submit" value="提交" />
					</td>
					</tr>
				</tbody>
				</table>
			
		</form>
      </div>
    </div>
  </div>
</div>
<script src="__JS__/checkadmin.js" type="text/javascript"></script>